package org.jeecg.modules.system.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.KM.VO.KmDocParamVO;
import org.jeecg.modules.KM.VO.KmDocVO;
import org.jeecg.modules.system.entity.CrawlComponent;
import org.jeecg.modules.system.mapper.CrawlComponentMapper;
import org.jeecg.modules.system.service.IScrawlComponentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author wt
 * @Date: 2024/9/25 11:31
 * @Description:
 */
@Service
public class IScrawlComponentServiceImpl extends ServiceImpl<CrawlComponentMapper, CrawlComponent> implements IScrawlComponentService {

    @Autowired
    CrawlComponentMapper crawlComponentMapper;

    /**
     * 查询
     * @return 结果
     */
    @Override
    public Page<CrawlComponent> queryComponent(Page<CrawlComponent> page, CrawlComponent component) {
        return crawlComponentMapper.queryComponent(page,component);
    }

    /**
     * 新增
     * @return 结果
     */
    @Override
    public int insertCrawlComponent(CrawlComponent crawlComponent)
    {
        return crawlComponentMapper.insertCrawlComponent(crawlComponent);
    }

    /**
     * 删除
     * @return 结果
     */
    @Override
    public int deleteComponent(Long id) {
        return crawlComponentMapper.deleteComponent(id);
    }

    @Override
    public int deleteBatchComponent(Long[] ids)
    {
        return crawlComponentMapper.deleteBatchComponent(ids);
    }



}
